using UnityEngine;

public class MoveByInput : MonoBehaviour
{
    public float speed = 4;
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        var delta_x = Input.GetAxis("Horizontal");
        var delta_y = Input.GetAxis("Vertical");

        //Debug.Log($"")
        transform.position += new Vector3(delta_x * speed * Time.deltaTime, delta_y * speed * Time.deltaTime, 0);
    }
}
